Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in recognition of more complex inputs. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danielgriggs
Copy link

There are cases where some sources are not recognised, I think because the input has a channel inside the source.

For example;

source s_syslog_tcp {
  channel {
    source {
      network( port(514) transport("tcp")
        tags("syslog_ng", "syslog_tcp", "unprocessed")
        flags(dont-store-legacy-msghdr,syslog-protocol)
      );
    };
    rewrite {
      set("tcp", value("syslog_transport"));
      set("false", value("processed"));
      set("${S_UNIXTIME}", value("unixtime"));
    };
  };
};

The only output from syslog-ng-stats is;

syslog-ng-ctl stats | grep s_syslog_tcp
source;s_syslog_tcp;;a;processed;11428093

It parses pretty much the same as a normal source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants